package com.example.missingpersons.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * log 实体类
 * @author 张芸博
 * @since 2025-03-12
 */
@Data
@AllArgsConstructor
public class Log implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 日志的唯一标识
     */
    @TableId(value = "log_id", type = IdType.AUTO)
    @Schema(name = "log_id", description = "日志的唯一标识")
    private Integer logId;

    /**
     * 操作用户ID
     */
    @Schema(name = "user_id", description = "操作用户ID")
    private Integer userId;

    /**
     * 操作类型（如：添加、修改、删除等）
     */
    @Schema(name = "action", description = "操作类型（如：添加、修改、删除等）")
    private String action;

    /**
     * 操作描述
     */
    @Schema(name = "description", description = "操作描述")
    private String description;

    /**
     * 操作时间
     */
    @Schema(name = "timestamp", description = "操作时间")
    private LocalDateTime timestamp;


}
